<?php
class CatalogueHolder extends Page {
   static $db = array(
   );
}
 
class CatalogueHolder_Controller extends Page_Controller {
   public function CatalogueMedia() {
      $media = DataObject::get("Medium");

      $doSet = new DataObjectSet();
      foreach ($media as $mediumKey => $medium) {
         $record = array(
            'Title' => $medium->Title,
            'Authors' => $medium->Authors()
         );
         $doSet->push(new ArrayData($record));
      }
      
      return $doSet;
   }
}
?>